package com.tanjie.blackbean.system.admin.model.role;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 角色绑定菜单
 *
 * @author tanjie
 * @since 2021-11-23
 */
@Data
@Schema(name = "RoleBindMenuDTO", description = "角色绑定菜单")
public class RoleBindMenuPermissionDTO implements Serializable {

    private static final long serialVersionUID = -3700982285530237370L;

    @Schema(description = "角色id")
    @NotBlank(message = "角色id（roleId）不能为空")
    private String roleId;

    @Schema(description = "菜单id数组")
    private List<String> menuIds;

    @Schema(description = "菜单权限节点id数组")
    private List<String> permissionIds;

}
